package com.gitee.xmhzzz.component.openfeign;


import com.gitee.xmhzzz.component.openfeign.customized.FeignDateFormatterRegistrar;
import com.gitee.xmhzzz.component.openfeign.customized.FeignErrorDecoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignAutoConfiguration
{

    @Bean
    public FeignDateFormatterRegistrar feignDateFormatterRegistrar() {
        return new FeignDateFormatterRegistrar();
    }


    @Bean
    public FeignErrorDecoder feignErrorDecoder() {
        return new FeignErrorDecoder();
    }

}
